<?php

use think\Route;

Route::resource('user', 'admin/users');
Route::resource('role', 'admin/roles');
Route::resource('node', 'admin/nodes');
Route::resource('a_role', 'admin/authRole');
Route::resource('a_node', 'admin/authNode');
Route::resource('customer', 'admin/customers');
Route::resource('tag', 'admin/tags');
Route::resource('arctile', 'admin/arctiles');
Route::resource('category', 'admin/cate');
Route::resource('imgbox', 'admin/imageBox');

Route::resource('banner', 'admin/banners');
Route::resource('img', 'admin/images');
Route::resource('look', 'admin/looks');


//前台的稿件路由
Route::resource('files', 'index/files');

Route::get('admin$', 'admin/index/index');
Route::get('admin/login$', 'admin/login/index');
Route::get('admin/exit$', 'admin/login/exitLogin');
Route::get('/qq$','index/login/qq');
Route::get('content/:id', 'index/index/content');
Route::get('category/:id', 'index/index/category');
Route::get('tagArctile/:id', 'index/index/tagArctile');
//Route::get('admin/doLogin$', 'admin/login/login');

//Route::get('ca')










return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
